interface EditInvoiceTitleAPIResData {
  code: number
  msg: string
  time: string
  data: string
}

interface EditInvoiceTitleAPIData {
  id: string
  type: string
  invoice_name: string
  taixer: string
  address: string
  mobile: string
  bank_name: string
  bank_account: string
}

export function editInvoiceTitleAPI(data: EditInvoiceTitleAPIData, token: string) {
  return httpInstance.post<EditInvoiceTitleAPIResData, EditInvoiceTitleAPIData>(
    '/api/order/editinvoiceheader',
    data,
    { headers: { token } },
  )
}
